<%@ page language="java" contentType="text/html; charset=UTF-8"
	import="com.zmht.specedu.vo.Teachbook,com.zmht.specedu.vo.Soundstudy,java.util.*,com.zmht.specedu.rescue.web.form.TargetForm,com.zmht.specedu.vo.Soundstudy"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
   /**
     * @author 张天兴
     * @since 2009/05/19
     */
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb18030" />
<title>聋校备课与语言学习及矫治系统</title>
<fmt:setBundle basename="PathResource" scope="session" />
<link href="<%=request.getContextPath()%>/<fmt:message key='StylePath' />style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript"
	src="<fmt:message key='datePicker' />WdatePicker.js"></script>
<script type="text/javascript"
			src="<%=request.getContextPath()%>/<fmt:message key='jquery' />jquery.js"></script>
<script type="text/javascript">
function TopLink(){ 
    var checkedIds="";
    var num=0; 
    var classId = $("select[name='classNumber']").val();
	var targetIds=document.getElementsByName( "targetId"); 
    for(var   i=0;i <targetIds.length;i++){ 
		if(targetIds[i].checked){ 
	    	if(checkedIds==""){
				checkedIds+=targetIds[i].value;
			}else{
				checkedIds+=","+targetIds[i].value;
			}
	    } 
	} 
	if(checkedIds==""){ //没有选择目标
	      alert("请先选择目标!") 
	      return;	      
	}
	else{
    	parent.topFrames.LinkMain('studpinggu.do?method=listTarget&classNumber='+classId+'&targetId='+checkedIds);
  	}
}
function CheckAll(ckbox,targetName){
	var elemts = document.getElementsByName(targetName);
	for(var i=0;i<elemts.length;i++){
		elemts[i].checked = ckbox.checked;
	}
}


</script>


</head>

<body class="bcolor">
<html:form method="post" action="studpinggu.do?method=listTarget">
 <input type=hidden name="classNumber"  />
  <table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#FFFFFF" bgcolor="#a7c8e6">
    <tr>
      <td><table width="100%" border="0" align="center" cellpadding="3" cellspacing="0" class="fontbot">
        <tr>          
          <td width="12%" align="right" valign="middle" bgcolor="#FFFFFF">班&nbsp;级：</td>
          <td width="10%" valign="middle" bgcolor="#FFFFFF">
          	<select name="classNumber">
				<c:forEach items="${clazz}" var="vc" varStatus="status">
					<option value="<c:out value="${vc.classId }" />|0">
						<c:out value="${vc.grades.name }" /><c:out value="${vc.classNumber }" />班
					</option>
				</c:forEach>
				<c:forEach items="${specialGroups}" var="vc" varStatus="status">
					<option value="<c:out value="${vc.onlyClassId }|1" />">
						<c:out value="${vc.name }" />
					</option>
				</c:forEach>
			</select>    
          </td>          
          
          <td valign="middle" bgcolor="#FFFFFF">&nbsp;</td>
        </tr>
      </table></td>
    </tr>
  </table>
  <table cellspacing="0" cellpadding="0" width="99%" align="center" border="0">
    <tbody>
      <tr>
        <td width="7"><img height="38" alt="" src="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />table_1_01.gif" 
      width="7" /></td>
        <td background="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />table_1_05.gif"><table cellspacing="0" cellpadding="0" width="100%" border="0">
            <tbody>
              <tr>
                <td width="30"><img height="38" alt="" src="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />table_1_02.gif" 
            width="30" /></td>
                <td align="left" width="200"  background="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />table_1_03.gif">&nbsp;<strong>教 学 目 标 评 估</strong></td>
                <td width="59"><img height="38" alt="" src="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />table_1_04.gif" 
            width="59" /></td>
                <td>&nbsp;</td>
              </tr>
            </tbody>
        </table></td>
        <td width="8"><img height="38" alt="" src="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />table_1_06.gif" 
      width="8" /></td>
      </tr>
      <tr>      
        <td background="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />table_1_07.gif"><img height="1"  src="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />spacer.gif" width="1" /></td>
        <td bgcolor="#f7fbff"><table cellspacing="1" bordercolordark="#ccccff" cellpadding="3" width="100%" 
      bgcolor="#cfe5f5" bordercolorlight="#ffffff" border="0">
            <tbody>
              
              <tr bgcolor="#a4c9ec">
                <td align="center"><strong><input onclick="CheckAll(this,'targetId');" type=checkbox value=checkbox name=chkAll   articleid="chkAll">选择</strong></td>
                <td align="center"><strong>目标名称</strong></td>
                <td align="center"><strong>教材类别</strong></td>
                <td align="center"><strong>目标等级</strong></td>
                <td align="center"><strong>制定日期</strong></td>
                <td align="center"><strong>制定人</strong></td>

              </tr>

              <c:forEach items="${pagenitionModel.resultItems}" var="item" varStatus="status">
              <tr bgcolor="#ffffff">
                <td  align="center"><input type="checkbox" name="targetId" value="<c:out value="${item.targetId }" />"/></td>
                <td align="center"><c:out value="${item.targetName}" /></td>
                <td align="center"><c:forEach items="${bookTypes}" var="bookType">
					<c:if test="${item.bookType==bookType.id }"><c:out value="${bookType.name}"/></c:if>
			    </c:forEach></td>
                <td align="center"><c:out value="${item.class_}"/></td>
                <td align="center"><c:out value="${item.zhidingTime}"/></td>
                <td align="center"><c:out value="${item.authorName}"/></td>
 
              </tr>
              </c:forEach>
              
              
            </tbody>
          </table>
                      
          
           <table cellspacing="1" cellpadding="0" width="98%" bgcolor="#ffffff"  border="0">
              <tbody>
                <tr>
                <td bgcolor="#e6f0f8">
            <table cellspacing="0" cellpadding="3" width="100%" border="0">
              <tbody>
                <tr>
                  <td>&nbsp;</td>
                  <td><a href="#" onfocus="this.blur()"><img src="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />jz_img/toc.gif" width="65" height="22" border="0" onclick="TopLink();" /></a></td>
                  <td>&nbsp;</td>
                  <td align="right"><jsp:include page="../../common/pagination.jsp"></jsp:include></td>
                </tr>
              </tbody>
            </table></td> 
                </tr>
              </tbody>
          </table>
          
        </td>
        <td background="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />table_1_09.gif"><img height="1" 
      src="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />spacer.gif" width="1" /></td>
      </tr>
      <tr>
        <td><img height="22" alt="" src="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />table_1_10.gif" width="7" /></td>
        <td background="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />table_1_11.gif">&nbsp;</td>
        <td><img height="22" alt="" src="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />table_1_12.gif" 
  width="8" /></td>
      </tr>
    </tbody>
  </table>
</html:form>
</body>
</html>
